#include "RigidCollision.h"

namespace poly
{
	void RigidCollision::apply(float dt)
	{
		RigidCollSet::iterator itr_i = colliders.begin();
		for( ; itr_i != colliders.end(); itr_i++ )
		{
			RigidCollSet::iterator itr_j = itr_i;
			itr_j++;
			for( ; itr_j != colliders.end(); itr_j++ )
			{
				(*itr_i)->collide( *itr_j );
			}
		}
	}
}
